package com.xiaomazi.edu.service;

import com.xiaomazi.common.utils.R;
import com.xiaomazi.edu.entity.Video;
import com.baomidou.mybatisplus.extension.service.IService;
public interface VideoService extends IService<Video>{

    /**
     * 根据小节id删除小节 包括视频
     * @param id 小节id
     * @return ok
     */
    R deleteVideoById(String id);

    /**
     * 根据课程Id删除所有小节和视频
     * @param courseId 课程id
     */
    void deleteVideoByCourseId(String courseId);
}
